<template>
  <div
    v-if="show"
    class="box"
  >
    <div
      class="wrapper"
      @click.stop
    >
      <a-spin
        size="large"
        tip="Loading..."
      />
    </div>

  </div>
</template>
<script>
export default {
  name: "Loading",
  props: {
    show: Boolean,
  },
};
</script>

<style lang="less" scoped>
.box {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 9999;
   background-color: rgba(239, 241, 241, 0.8);
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    .block {
      color: #6a72fe;
    }
  }
}
</style>